// About.cpp : implementation file
//

#include "stdafx.h"
#include "About.h"
#include "afxdialogex.h"
#include "globals.h"

// CAbout dialog

IMPLEMENT_DYNAMIC(CAbout, CDialog)

CAbout::CAbout(CWnd* pParent /*=NULL*/)
	: CDialogEx(CAbout::IDD, pParent)
{

	m_cVersionStr = _T("");
}

CAbout::~CAbout()
{
}

void CAbout::DoDataExchange(CDataExchange* pDX)
{
	CDialogEx::DoDataExchange(pDX);
	DDX_Text(pDX, IDC_STATIC_VERSION, m_cVersionStr);
	DDX_Control(pDX, IDC_STATICWEB, m_web);
}


BEGIN_MESSAGE_MAP(CAbout, CDialog)

END_MESSAGE_MAP()


// CAbout message handlers


BOOL CAbout::OnInitDialog()
{
	CDialogEx::OnInitDialog();
	CString cVersion = "         ";
	GetFileVersionString(&cVersion);
	m_cVersionStr.Format(_T("MagicBurner V%.3f"), atof(cVersion)/1000);
	UpdateData(FALSE);
	return TRUE;  // return TRUE unless you set the focus to a control
	// EXCEPTION: OCX Property Pages should return FALSE
}
